<br><input type="radio" name="radiobtn" value="add" onClick="showInput('sadd')">dodaj do listy 
 <br><span id="sadd" style="display:none">
 <select name="selectlist" class="styled" style="display:none" size="1" id="selectlist"  onclick="listNameClicked()" >
   <option value="-1.ch" id="firstselect" >Wybierz listę</option>
   <?php
$i= 0;
//wczytywanie z DB nazwy list
echo 'session: ';
print_r($_SESSION);
$database->query("SELECT * FROM lists WHERE `ID_USER` =".$_SESSION['ID']);

$result=$database->getReturn();

while ($r=mysql_fetch_array($result))
{
   echo '<option value="'.$r['ID'].'.'.$r['name'].'">'.$r['name'].'</option>';
  // $i++;
}
?>
   </select>
<input type="text" class="nameInput" style="display:none" name="listNameInput" id="listNameInput" size="8">
   <input type="submit" name="addToList" value="Dodaj" onclick="return addToListClicked()" ></span>